export default {
  data() {
    return {
      loginPwMsg: {
        userName: "",
        password: "",
        authCode: "",
        uuid: "",
      },
      loginPwRules: {
        userName: [
          { required: true, message: '请输入用户名', trigger: 'blur' }
        ],
        password: [
          { required: true, message: '请输入密码', trigger: 'blur' }
        ],
        authCode: [
          { required: true, message: '请输入图形验证码', trigger: 'blur' }
        ]
      },
      loginTextMsg: {
        userPhone: "",
        authCode: "",
        authType: "login",
      },
      loginTextRules: {
        userPhone: [
          { required: true, message: '请输入手机号码', trigger: 'blur' },
          { trigger: 'blur', validator: (rule, value, callback) => {
              this.regCheck('phone', value) ? callback('号码格式不正确') : callback()
            }
          }
        ],
        authCode: [
          { required: true, message: '请输入验证码', trigger: 'blur' }
        ]
      }
    }
  }
}
